#include "ReturnHomeWithTimeLookaheadAlgorithm.h"

ReturnHomeWithTimeLookaheadAlgorithm::ReturnHomeWithTimeLookaheadAlgorithm(list<Request> requests, int dimensions, float speed, float delta)
{
	actual_coords = new float[dimensions];
	origin = new float[dimensions];
	this->requests = requests;
	for (int i = 0; i< dimensions; i++)
		actual_coords[i]=0;
	for (int i = 0; i< dimensions; i++)
		origin[i]=0;
	total_road = 0.0;
	actual_time = 0.0;
	this->speed = speed;
	this->dimensions = dimensions;
	this->delta = delta;
}

ReturnHomeWithTimeLookaheadAlgorithm::~ReturnHomeWithTimeLookaheadAlgorithm()
{
	delete [] actual_coords;
	delete [] origin;
}

void ReturnHomeWithTimeLookaheadAlgorithm::calculate() {
	list<Request>::iterator actual_request = requests.begin();
	while (!requests.empty()) {

	}
}
